COMBMODE=OR, IOCOND=LOW, HEVENT=SELECTS_THE_L_STATE, STATELD=STATEV_VALUE_IS_ADDE, OUTSEL=SELECTS_THE_INPUT_SE, DIRECTION=DIRECTION_INDEPENDEN
SCT event control register 0
MATCHSEL | Selects the Match register associated with this event (if any). A match can occur only when the counter selected by the HEVENT bit is running. |
HEVENT | Select L/H counter. Do not set this bit if UNIFY = 1. 0 (SELECTS_THE_L_STATE): Selects the L state and the L match register selected by MATCHSEL. 1 (SELECTS_THE_H_STATE): Selects the H state and the H match register selected by MATCHSEL. |
OUTSEL | Input/output select 0 (SELECTS_THE_INPUT_SE): Selects the input selected by IOSEL. 1 (SELECTS_THE_OUTPUT_S): Selects the output selected by IOSEL. |
IOSEL | Selects the input or output signal associated with this event (if any). Do not select an input in this register, if CKMODE is 1x. In this case the clock input is an implicit ingredient of every event. |
IOCOND | Selects the I/O condition for event n. (The detection of edges on outputs lags the conditions that switch the outputs by one SCT clock). In order to guarantee proper edge/state detection, an input must have a minimum pulse width of at least one SCT clock period . 0 (LOW): LOW 1 (RISE): Rise 2 (FALL): Fall 3 (HIGH): HIGH |
COMBMODE | Selects how the specified match and I/O condition are used and combined. 0 (OR): OR. The event occurs when either the specified match or I/O condition occurs. 1 (MATCH): MATCH. Uses the specified match only. 2 (IO): IO. Uses the specified I/O condition only. 3 (AND): AND. The event occurs when the specified match and I/O condition occur simultaneously. |
STATELD | This bit controls how the STATEV value modifies the state selected by HEVENT when this event is the highest-numbered event occurring for that state. 0 (STATEV_VALUE_IS_ADDE): STATEV value is added into STATE (the carry-out is ignored). 1 (STATEV_VALUE_IS_LOAD): STATEV value is loaded into STATE. |
STATEV | This value is loaded into or added to the state selected by HEVENT, depending on STATELD, when this event is the highest-numbered event occurring for that state. If STATELD and STATEV are both zero, there is no change to the STATE value. |
MATCHMEM | If this bit is one and the COMBMODE field specifies a match component to the triggering of this event, then a match is considered to be active whenever the counter value is GREATER THAN OR EQUAL TO the value specified in the match register when counting up, LESS THEN OR EQUAL TO the match value when counting down. If this bit is zero, a match is only be active during the cycle when the counter is equal to the match value. |
DIRECTION | Direction qualifier for event generation. This field only applies when the counters are operating in BIDIR mode. If BIDIR = 0, the SCT ignores this field. Value 0x3 is reserved. 0 (DIRECTION_INDEPENDEN): Direction independent. This event is triggered regardless of the count direction. 1 (COUNTING_UP): Counting up. This event is triggered only during up-counting when BIDIR = 1. 2 (COUNTING_DOWN): Counting down. This event is triggered only during down-counting when BIDIR = 1. |
RESERVED | Reserved |